const OWallet= resolve => require(['@/views/wallet/list'], resolve)
const OWalletNew= resolve => require(['@/views/wallet/ord/new'], resolve)
const OWalletImport = resolve => require(['@/views/wallet/ord/import'], resolve)
const OWalletDetails = resolve => require(['@/views/wallet/ord/details'], resolve)
const OWalletSend = resolve => require(['@/views/wallet/send-transcation'], resolve)
const OWalletAccept = resolve => require(['@/views/wallet/accept-transcation'], resolve)

const Wallet= {
    OWallet: {
        name: '钱包',
        path: '/o-wallet-list',
        component: OWallet,
        meta: {
           flag: 'parent'
        }
    },
    OWalletNew: {
        name: '创建钱包',
        path: '/o-wallet-new',
        component: OWalletNew,
        meta: {
           flag: 'child'
        },
    },
    OWalletImport: {
        name: '导入钱包',
        path: '/o-wallet-import',
        component: OWalletImport,
        meta: {
            flag: 'child'
        },
    },
    OWalletDetails: {
        name: '交易',
        path: '/o-wallet-details',
        component: OWalletDetails,
        meta: {
            flag: 'child'
        },
    },
    OWalletSend: {
        name: '发送资产',
        path: '/o-wallet-send',
        component: OWalletSend,
        meta: {
            flag: 'child'
        },
    },
    OWalletAccept: {
        name: '接收',
        path: '/o-wallet-accept',
        component: OWalletAccept,
        meta: {
            flag: 'child'
        }
    },
}

export default Wallet